package com.camundademo.listener;

import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
import org.springframework.stereotype.Component;

public class ProcessNodeListener {

    @Component("ProcessNodeListener.PubStartListener")
    public static class PubStartListener implements JavaDelegate {

        @Override
        public void execute(DelegateExecution execution) throws Exception {
            System.out.println(
                    ">>>>ProcessNodeListener.PubStartListener>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<" + execution.getEventName());
        }


    }

}
